ΕΠΙΣΤΡΟΦΗ
Υλοποίηση μέσω γλώσσας Wolfram στο WLJS Notebook .
Ιδιοτιμές - Ιδιοσυναρτήσεις
Ακριβής επίλυση
Clear["Global`*"]
operator = -Laplacian[u[x], {x}] + x^2 u[x]
bound = DirichletCondition[u[x] == 0, True]
DEigensystem[{operator, bound}, u[x], {x, -Infinity, Infinity}, 3]
Clear["Global`*"]
L = Pi;
B1 = DirichletCondition[u[x] == 0, x == 0];
B2 = NeumannValue[0, x == L];
{idiotimes, idiosynartiseis} =
DEigensystem[{-Laplacian[u[x], {x}] + B2, B1}, u[x], {x, 0, L}, 10];
idiotimes
idiosynartiseis
Plot[idiosynartiseis, {x, 0, L}, PlotLegends -> idiosynartiseis]
Κανονικοποίηση
{idiotimesNorm, idiosynartiseisNorm} =
DEigensystem[{-Laplacian[u[x], {x}] + B2, B1}, u[x], {x, 0, L}, 10, Method -> "Normalize"];
{idiotimesNorm, idiosynartiseisNorm} // Transpose // TableForm
(*Εδώ έχουμε το σύνηθες εσωτρικό γινόμενο, αφού είναι σε μορφή Sturm-Liouville*)
eigFnorms = Table[Sqrt[Integrate[idiosynartiseis[[n]]^2, {x, 0, L}]], {n, 1, 10}]
idiosynartiseisNorm2 = Table[idiosynartiseis[[n]]/eigFnorms[[n]], {n, 1, 10}];
TableForm[idiosynartiseisNorm2]
Αριθμητική επίλυση
{idiotimesN, idiosynartiseisN} =
NDEigensystem[{-Laplacian[u[x], {x}] + B2, B1}, u[x], {x, 0, L}, 10];
idiotimesN
Plot[idiosynartiseisN, {x, 0, L}]
Static web notebook
Author kkoud
Created Mon 6 Oct 2025 12:33:59
Outline
Κώστας Κούδας | © 2025